//
//  Scene_Game.h
//  StarBugs
//
//  Created by ?? ? on 12/22/11.
//  Copyright 2011 antisword@playorca.com. All rights reserved.
//

#ifndef __SCENE_GAME_H__
#define __SCENE_GAME_H__

#include "cocos2d.h"
#include "Layer/GameLayer.h"


enum{
    gameState_init,
    gameState_game,
    gameState_gotoStageSelect,
};

class Scene_Game : public cocos2d::CCLayer
{
public:
    ~Scene_Game();
    Scene_Game();

    virtual void ccTouchesBegan(cocos2d::CCSet* touches, cocos2d::CCEvent* event);
    virtual void ccTouchesMoved(cocos2d::CCSet* touches, cocos2d::CCEvent* event);
    virtual void ccTouchesEnded(cocos2d::CCSet* touches, cocos2d::CCEvent* event);
    virtual void didAccelerate(CCAcceleration *pAccelerationValue);
    
    virtual void keyBackClicked();

    static cocos2d::CCScene* scene();
    void callback_InApp(int type, int extraData);
private:
    cocos2d::CCSize winSize; 
    GameLayer *gameLayer;

    int gameState;
    
    void tick(float dt);
    void changeState(int state);
};


#endif//__SCENE_GAME_H__
